HR | NN n/a IE 4 DOM 1 | ||
The HR object reflects the HR element. | |||
HTML Equivalent<HR> | |||
Object Model Reference
|
align | NN n/a IE 4 DOM 1 | ||
Read/Write | |||
Defines the horizontal alignment of the element within its surrounding container. | |||
Exampledocument.all.myHR.align = "center" | |||
Value Any of the three horizontal alignment constants: center | left | right. | |||
|
color | NN n/a IE 4 DOM 1 | ||
Read/Write | |||
Sets the color scheme of the horizontal rule. If the rule is rendered in 3-D, complementary colors are automatically assigned to the shaded area. | |||
Exampledocument.all.myHR.color = "red" | |||
Value Case-insensitive hexadecimal triplet or plain-language color name as a string. See | |||
|
noShade | NN n/a IE 4 DOM 1 | ||
Read/Write | |||
Whether the browser should render the rule as a flat (not 3-D) line. In Internet Explorer only, if you set the color property, the browser changes the default line style to a no-shade style. | |||
Exampledocument.all.bar2.noShade = "true" | |||
Value Boolean value: true | false. | |||
|
size | NN n/a IE 4 DOM 1 | ||
Read/Write | |||
The thickness in pixels of the horizontal rule. | |||
Exampledocument.all.rule2.size = 3 | |||
Value Positive integer. | |||
|
width | NN n/a IE 4 DOM 1 | ||
Read/Write | |||
The width of the rule either in pixels (as an integer) or a percentage (as a string) of the next outermost block-level container. | |||
Exampledocument.all.bar3.width = "70%" | |||
Value Integer (for pixels) or string (for pixels or percentage). | |||
|